function Zebra() {
    this.barCode = "";//条码
    this.printMode = "";//打印内外包装码 1内包装 2外包装
    this.lenovoFlag = false;//打印lenovo标记
    this.diffFlag = false;//打印区别码标记
    this.diffCon = "";//区别码内容
    this.format_content = "";//转化得ZPL语言内容
    this.toZPL = function () {
        var _this = this;
        _this.format_content = "";
        //打印lenovo
        if (_this.lenovoFlag) {
            _this.format_content = _this.format_content.concat("^FO12,148^GFA,02688,02688,00028,:Z64:eJztkz1u20AQhWdFCASiYquAJY0cwFdYdW5dCHDJY7hcBilT+ApGLuAjmIIhqHUKIWWYjiUFyPBaWu7LDP+synATBDA0APWAffr2cXaWRKc61aneVbF/w3P/wPsfeckTfZ5nl6SyxXRB04Wyi5H7VNHk7DwnOr+dnNHkC+vgKYsi2cJRjCZuKPEx/MgZ5LpkL4KPPMX7qPf4VwEueQYoBS7AHOu852bsaQC5AX7wPxxr2Xsx4BPxLLAUz756OmivccfeARVy9g6dx3lpkzXCLe0ztpinW9a650wdBR2I98uNQ2G2zI5eqZA4woqzvC3MhnU3egTt6H4ZSAv3R7TPs0WMK0d2zX0zZzehO+aWu51BV2QeAs2cLc3DnmaDZ7mxq5rML0+Rz0qsRAfvOypdklnLWlqC1zpP8tZ8LnWfl9W4OOYgc+g5Xb1ynUfJkJe+ID7iDI9u5OKXEB3n8bTaPO6ZZx6mx/0hb7m2v/gQItHB29Gl5P2U2TGn+KzH85QZMrcMuXYR9kpUPFxfm51q+1vhyTLnld3YlgPCDe6CcIXchQm/9HAneN43+N20ebxWR3BKtOe+8dNyfL9yAk9EtOPk4TlY2bNQjIj23Fe5n8LxJSXiKI1APUcZfw+c96iwk1tAU9GOy3U3h3Y/uudXxBtf5alO9WHrL9QTpE0=:24FE ")
        }
        //外包装
        if (_this.printMode=="2") {
            _this.format_content = _this.format_content.concat("^FO0,32^GFA,00768,00768,00012,:Z64:eJy10sENgCAMBdBvPHh0hI7CaLiJqzAKI3j0QKzVCNakJhqxB/IOBMovwO/leK/hs0HMIMOyIx5uxJPhbjvGMDG6bDej5dFwBHzuJ9xYFlLuDS8P3Vbym3sv/QfbTr1X8oHKqpiS5DnmnKM/M9dmToah5rVNfjBc6S+VWgGKCubv:DAA7 ")
        }
        //打印条码
        _this.format_content = _this.format_content.concat("^BY3,3,159^FT90,168^BCN,,N,N^FD");
        _this.format_content = _this.format_content.concat(_this.barCode);
        _this.format_content = _this.format_content.concat("^FS ^FT301,217^A0N,58,52^FH\^FD");
        _this.format_content = _this.format_content.concat(_this.barCode);
        _this.format_content = _this.format_content.concat("^FS ");
        //打印区别码
        if (_this.diffFlag) {
            _this.format_content = _this.format_content.concat("^FT40,160^A0N, 52,52^FH\^FD");
            _this.format_content = _this.format_content.concat(_this.diffCon);
            _this.format_content = _this.format_content.concat("^FS ");
        }
        return _this.format_content;
    }
}